package org.itzheng.myrxframe.http.retrofit.api;

import org.itzheng.myrxframe.http.ApiUrl;
import org.itzheng.myrxframe.http.bean.abase.BaseResult;
import org.itzheng.myrxframe.http.bean.RowsBean;
import org.itzheng.myrxframe.http.retrofit.utils.RetrofitClient;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * Title:测试Retrofit接口<br>
 * Description: <br>
 *
 * @email ItZheng@ZoHo.com
 * Created by itzheng on 2019-4-9.
 */
public interface TestApiService {
    @GET(ApiUrl.getJson)
    Call<ResponseBody> getJson();

    /*
    {"fType":"1","fSize":"1"}
     */
    @POST(ApiUrl.getShareList)
    Call<ResponseBody> getShareList(@Body Map<String, Object> request);

    @POST(ApiUrl.getShareList)
    Observable<ResponseBody> getShareListRx(@Body Map<String, Object> request);

    @POST(ApiUrl.getShareList)
    Observable<ResponseBody> getShareListRxMap(@Body Map<String, Object> request);

    @POST(ApiUrl.getShareList)
    Observable<BaseResult<RowsBean>> getShareListRxMapBean(@Body Map<String, Object> request);

    @POST(ApiUrl.getShareList)
    Observable<ResponseBody> getShareListRxString(@Body RequestBody s);

}
